package com.kaoshi.agency.controller;

import com.kaoshi.agency.domain.Jigo;
import com.kaoshi.agency.service.JigoService;
import com.kaoshi.common.config.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/agency/jigo")
public class JigoController {
    @Autowired
    private JigoService jigoService;
    @RequestMapping("/findAll")
    public Result findAll(){
        return Result.ok(jigoService.list());
    }

}
